import request from '@/utils/request'

export function getSubscriberList(query) {
  return request({
    url: '/popularize/subscriber/getList',
    method: 'post',
    data: query
  })
}

export function getSubscriberDetail(id) {
  return request({
    url: '/popularize/subscriber/getDetail',
    method: 'post',
    data: id
  })
}

export function saveSubscriber(id) {
  return request({
    url: '/popularize/subscriber/save',
    method: 'post',
    data: id
  })
}

export function deleteSubscriberByID(id) {
  return request({
    url: '/popularize/subscriber/delete',
    method: 'post',
    data: id
  })
}

export function removeSubscriberByID(id) {
  return request({
    url: '/popularize/subscriber/remove',
    method: 'post',
    data: id
  })
}

export function changeSubscriberStatusByID(formdata) {
  return request({
    url: '/popularize/subscriber/change-status',
    method: 'post',
    data: formdata
  })
}

export function getSubscriberAvabile() {
  return request({
    url: '/popularize/subscriber/getAvailable',
    method: 'post'
  })
}

